package com.qing.library.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

/**
 * Created by DaiQing.Zha on 2016/6/15 0015.
 * Email:1642674371@qq.com
 * Description:
 */
public class IntentUtils {

    public static void startActivity(Context context,Class<?> cls){
        context.startActivity(new Intent(context, cls));
    }

    public static void startActivity(Context context,Intent intent){
        context.startActivity(intent);
    }

    public static void startActivity(Context context,Class<?> cls,Intent intent){
        context.startActivity(intent.setClass(context, cls));
    }

    public static void startActivityForResult(Intent intent, int requestCode){
        startActivityForResult(intent, requestCode);
    }
}
